<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" media="screen" type="text/css" href="__THEMES__/style/layout.css" />
		<script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
		<script type="text/javascript" src="__JS__/jQuery/plugin/troperate.js"></script>
		<script type="text/javascript" src="__JS__/jQuery/plugin/alertbox.js"></script>
		<script type="text/javascript">
			$(function(){
				$('form').submit(function(){
					var _checkbox = $('input[name="ids[]"]');
					var _select = $('select[name="cid"]');
					var _i = 0;
					_checkbox.each(function(i){
						if ( $(this).attr('checked') ){
							_i = _i + 1;
						}
					});
					if ( _i == 0 ){
						setAlertBox('未选中任何信息！', 2);
						return false;
					}
					if ( _select.val() == '' ){
						setAlertBox('请选择移动的目标分类！', 2);
						return false;
					}
				});
			});
		</script>
	</head>
	<body>
		
		<include file="Public:position" />
		
		<div class="a_table">
			
			<form action="__URL__/moveCatelog" method="post">
			
	    	<div class="button">
	    		<input type="button" value="发布文档/文章" class="submit" id="add_archives" onclick="window.location.href='{:U('add',array('tag'=>$_GET['tag']))}';"  />
	    		&nbsp;&nbsp;
	    		<select name="cid" class="input_text">
					<option value="">移动到 &raquo;</option>
					{$option}
				</select>
				&nbsp;&nbsp;
				<input type="submit" class="submit" name="movecatelog" value="移动" />
	    	</div>
            
            
            <div class="a_table">
		    	<table cellspacing="1" width="100%" class="gr_list">
					<tr style="background: #f0f7ff; font-weight: bold;">
						<td width="20"><input type="checkbox" name="all" /></td>
						<td width="60" align="center">编号</td>
						<td align="center">名称</td>
						<td align="center">分类</td>
						<td width="100" align="center">状态</td>
						<td width="160" align="center">操作</td>
					</tr>
					<volist id="vo" name="list">
					<tr rel="{$vo['id']}" class="row_color"<?php if( ( $i % 2 ) == 0 ){ ?> bgcolor="#f9f9f9"<?php } ?>>
						<td><input type="checkbox" name="ids[]" value="{$vo.id}" /></td>
						<td align="center">{$vo['id']}</td>
						<td><php>if(!empty($vo['thumb']) && $vo['thumb'] != 'no_thumb.jpg'){</php> <img src="__PUBLIC__/images/icon_picture.png" align="absmiddle" /> <php>}</php><a href="{:U('edit',array(
							'id' => $vo['id'],
							'cid' => $vo['cid'],
							'tag' => $_GET['tag'],
						))}">{$vo['title']}</a></td>
						<td align="center">{$vo['cid']|getParentCategory}</td>
						<td align="center">{$vo['status']|getStatus}</td>
						<td align="center">
							{$vo['status']|showStatus=$vo['id'],'navTabAjaxMenu'}<span class="action_line">&nbsp;&nbsp;|&nbsp;&nbsp;</span><a href="{:U('edit',array(
							'id' => $vo['id'],
							'cid' => $vo['cid'],
							'tag' => $_GET['tag'],
						))}" class="edit_model">编辑</a><span class="action_line">&nbsp;&nbsp;|&nbsp;&nbsp;</span><a href="{:U('delete',array('id' => $vo['id']))}" class="del_node" rel="{$vo.id}">删除</a>
						</td>
					</tr>
					</volist>
				</table>
            </div>
            </form>
            <div class="page">{$page}</div>
        </div>
	</body>
</html>